package cn.edu.zhku.citrusmonitor.constant;

import java.util.ResourceBundle;

public class Constant {
	public static final String ORDINARY_USER;	// 普通用户
	public static final String LEAGUER_USER;	// 会员用户
	public static final String ORDINARY_ADMIN;		// 普通管理员
	public static final String SUPER_ADMIN;		// 超级管理员
	public static final String DISC_PATH;	// 磁盘文件存放路径
	public static final String CITRUS_IMG_PATH;	// 存放柑橘的图片路径，如/upload/citrus
	public static final String TECHNOLOGY_IMG_PATH;
	public static final String DEFAULT_PAGESIZE;	
	public static final String DEFAULT_DATEFORMAT;	
	public static final String PEST_IMG_PATH;	// 存放虫害的图片路径，如/upload/pest
	public static final String DISEASE_IMG_PATH;	// 存放虫害的图片路径，如/upload/disease
	
	
	static {
		ResourceBundle bundle = ResourceBundle.getBundle("constant");
		ORDINARY_USER = bundle.getString("ordinary_user");
		LEAGUER_USER = bundle.getString("leaguer_user");
		ORDINARY_ADMIN = bundle.getString("ordinary_admin");
		SUPER_ADMIN = bundle.getString("super_admin");
		DISC_PATH = bundle.getString("disc_path");
		CITRUS_IMG_PATH = bundle.getString("citrus_img_path");
		TECHNOLOGY_IMG_PATH = bundle.getString("technology_img_path");
		DEFAULT_PAGESIZE = bundle.getString("default_page_size");
		DEFAULT_DATEFORMAT = bundle.getString("default_date_format");
		PEST_IMG_PATH = bundle.getString("pest_img_path");
		DISEASE_IMG_PATH = bundle.getString("disease_img_path");
	}
	
}

